package homework3;

public class FactoryDemo {
    //设置工厂模式测试类
    public static void main(String[] args) {
        System.out.println("工厂方法模式实现...");
        BMWFactory bmwFactory = new BMWFactory();
        bmwFactory.produceCar();
        BenzFactory benzFactory = new BenzFactory();
        benzFactory.produceCar();
    }
}
